[201911][Monit] Monitor critical processes in radv and dhcp_relay containers.#7340
Merged
yozhao101 merged 3 commits intosonic-net:201911from Apr 16, 2021
Merged
Conversation
Signed-off-by: Yong Zhao <[email protected]>
service file. Signed-off-by: Yong Zhao <[email protected]>
3 tasks
jleveque
suggested changes
Apr 15, 2021
Signed-off-by: Yong Zhao <[email protected]>
jleveque
approved these changes
Apr 15, 2021
yozhao101
commented
Apr 16, 2021
Contributor
|
could we please paste what's the corresponding sonic-mgmt test case for this? |
Contributor
Author
I am working on the PR of pytest script and will paste the link of PR later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Yong Zhao [email protected]
Why I did it
This PR aims to monitor critical processes in
router advertiseranddhcp_relaycontainers by Monit.How I did it
Router advertiser container only ran on T0 device and the T0 device should have at least one VLAN interface
which was configured an IPv6 address. At the same time, router advertiser container will not run on devices of which
the deployment type is 8.
As such, I created a service which will dynamically generate Monit configuration file of router advertiser from a
template.
Similarly Monit configuration file of
dhcp_relaywas also generated from a template since the number ofdhcrelayprocess indhcp_relaycontainer is depended on number of VLANs.How to verify it
I verified this implementation on a DuT.
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)